﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Heightmap_Editor.Menu.Screens
{
    class MenuImage:MenuWidget
    {
        public Texture2D Texture { get; set; }

        public MenuImage(Texture2D texture) : base("")
        {
            Texture = texture;
        }

        public override void Draw(MenuScreen screen, Vector2 position, GameTime gameTime)
        {
            screen.ScreenManager.SpriteBatch.Draw(Texture, new Rectangle((int) position.X, (int) position.Y, 150, 150),
                                                  Color.White);
        }

        public override int GetHeight(MenuScreen screen)
        {
            return 160;
        }
    }
}
